Page({
  data: {
    navData: [
      { title: 'UI库', url: '/demo/pages/ui-frame/index', icon: 'flower-o' },
      { title: '配置管理', url: '/demo/pages/config-mgr/index', icon: 'setting-o' },
      { title: '常量定义', url: '/demo/pages/constant-def/index', icon: 'discount-o' },
      { title: '操作反馈', url: '/demo/pages/feedback/index', icon: 'warn-o' },
      { title: '事件总线', url: '/demo/pages/event-bus/index', icon: 'fire-o' },
      { title: 'API定义', url: '/demo/pages/api-def/index', icon: 'link-o' },
      { title: '统一请求工具', url: '/demo/pages/request-tool/index', icon: 'logistics' },
      { title: '模拟请求工具', url: '/demo/pages/request-mock/index', icon: 'exchange' },
      { title: '缓存工具', url: '/demo/pages/cache-tool/index', icon: 'points' },
    ]
  },
  showDemo (e) {
    wx.navigateTo({ url: e.target.dataset.url })
  }
})
